<?php

final class ActionController extends PageController
{

	function dbdemo()
	{
		$data = array(
			'name'=>'hqp',
			'sex'=>'male',
			'birthday'=>'12-21',
			'status'=>rand(1,20),
			'v_compressed'=>'asdsadsadasdasdasdasdasdasdas',
			'rt_test1'=>'<html><head></head><body>hahahahha</body></html>',
			'ra_test2'=>array('a'=>1,'cc'=>'dd'),
		);
		$moddemo = ANew('moddemo');
		$id = $moddemo->addHqp($data);
		$data = $moddemo->getHqpById($id);
		$arr['name'] = 'hqp_update';
		$moddemo->updateHqp($id,$arr);
		//$moddemo->deleteHqp($id,$arr);
		$this->set('hqp',$data);
	}

	function demo()
    {
        $this->set('key1','this is first');
        $this->set('key2','this is second');
        $this->setView('hapn/demo.phtml');
    }

	function hello()
	{
		echo "aaa";
		$this->setView('hapn/empty.phtml');
	}
}
?>
